import Vue from 'vue'
import Vuex, { createLogger } from 'vuex'
import modules from './modules'
const buildEnv = process.env.VUE_APP_PRODUCTION_ENV === 'prod'
Vue.use(Vuex)

export default new Vuex.Store({
  modules,
  plugins: buildEnv ? [] : [createLogger()]
})
